package com.tg.data.http.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class AlertMessageFilterBean implements Parcelable {

    private String tag;
    private String tag_name;
    private String tag_type;

    public void setTag_type(String tag_type) {
        this.tag_type = tag_type;
    }

    public String getTag_type() {
        return tag_type;
    }

    public boolean isAiType() {
        return "ai".equals(tag_type);
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getTag_name() {
        return tag_name;
    }

    public void setTag_name(String tag_name) {
        this.tag_name = tag_name;
    }

    public AlertMessageFilterBean() {
    }


    protected AlertMessageFilterBean(Parcel in) {
        tag = in.readString();
        tag_name = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(tag);
        dest.writeString(tag_name);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Parcelable.Creator<AlertMessageFilterBean> CREATOR = new Parcelable.Creator<AlertMessageFilterBean>() {
        @Override
        public AlertMessageFilterBean createFromParcel(Parcel in) {
            return new AlertMessageFilterBean(in);
        }

        @Override
        public AlertMessageFilterBean[] newArray(int size) {
            return new AlertMessageFilterBean[size];
        }
    };

    @Override
    public String toString() {
        return "MessageFilterBean{" +
                "tag='" + tag + '\'' +
                ", tag_name='" + tag_name + '\'' +
                '}';
    }
}